<!doctype html>
<html>
<head>
    {% if tishi == "登录成功" %}
    <meta http-equiv="refresh" content="3;URL=index">
    {% endif %}
    <title>登陆</title>
</head>
<style>
	input{
    outline-style: none ;
    border: 1px solid #ccc; 
    border-radius: 12px;
    padding: 10px 14px;
    width: 20%;
    font-size: 14px;
    font-weight: 700;
    font-family: "Microsoft soft";
}
	input:focus{
                    border-color: #66afe9;
                    outline: 0;
                    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
                    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
            }

</style>
<body style="text-align: center">
	<p align="center" style="font-size: 40px;color: red">{{ tishi }}</p>
    {% if tishi == "登录成功" %}
        <p style="font-size: 40px;color: red;text-decoration:none">3s后自动返回首页</p>
    {% endif %}
   <form action="/login/logining_" method="post" style="text-align:center;">
     {% csrf_token %}
    <p>用户名：<input type="text" name="username"></p>
    <p>密码：<input type="password" name="password"></p>
    <input type="submit" value="登录">
	</form>
</body>
</html>
